package cloning.bl.chapt04;

public class DemoSimpleClone {

	private static Student changeId(Student p) {
		Student copy = (Student) p.clone();
		copy.setId(1000 + copy.getId());
		return copy;
	}

	public static void main(String[] args) {
//		Student ob = new Student();
//		System.out.println("id = " + ob.getId());
//		changeId(ob);
//		System.out.println("id = " + ob.getId());
//		System.out.println("id = " + changeId(ob).getId());
	}

}
